﻿using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;


namespace AnyOffice.general.rms.lend_manage
{
    public partial class allow : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int lendId = (Request.QueryString["lend_id"] != null) ? int.Parse(Request.QueryString["lend_id"].ToString()) : 0;
            int allow = (Request.QueryString["allow"] != null) ? int.Parse(Request.QueryString["allow"].ToString()) : 0;
            new RmsLendDao().Allow(base.Conn, lendId, allow);
            base.CloseConn();
            Response.Redirect("index.aspx");
        }
    }
}
